package com.imooc.mall.enums;

import lombok.Getter;

/**
 * 订单状态:0-已取消-10-未付款，20-已付款，40-已发货，50-交易成功，60-交易关闭
 * @author: bizy
 * @date: 2020/07/21 21:03
 */
@Getter
public enum OrderStatusEnum {

    CANCELED(1,"已取消"),

    NO_PAY(10,"未付款"),

    PAID(20,"已付款"),

    SHIPPED(40,"已发货"),

    TRADE_SUCCESS(50,"交易成功"),

    TRADE_CLOSE(60,"交易关闭"),

    ;

    private Integer code;

    private String desc;

    OrderStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }}
